package cn.com.dhcc.turbo.entity.registry;

import java.io.Serializable;
import java.util.Date;

import cn.com.dhcc.app.core.annotation.SiColumn;
import cn.com.dhcc.app.core.annotation.SiNotDbColumn;
import cn.com.dhcc.app.core.annotation.SiTable;
import cn.com.dhcc.app.core.base.ModuleFeatureBean;

/**
 * 传输通道基本信息表
 * 
 * @日期：2014-5-20 下午2:03:18
 * @作者：张洪涛
 * @版权所有：东华软件
 * @版本：1.0
 */
@SiTable(name = "turbo_node_pipeline")
public class NodePipeline extends ModuleFeatureBean implements Serializable{
	private static final long serialVersionUID = 1L;
	@SiColumn(isId=true)
	private String id;// id
	@SiColumn(name = "node_id")
	private String nodeId;// 所属节点id
	private String paramStr;// 通道参数字符串 Json字符串
	private String status;// 通道状态 0 异常 1正常
	private String isEmbed;// 是否系统内嵌 0 否1 是
	private Date mtime;// 最后修改时间
	private String remark;// 备注
	private String pipeType;// 通道类型 0 ftp 1 消息队列
	private String isLocal;
	public static enum PIPE_TYPE{
		FTP_EMBED("0","FTP"),
		TONGLINKQ("1","TongLinkQ");
		private String code;
		private String name;
		private PIPE_TYPE(String code,String name){
			this.name = name;
			this.code = code;
		}
		public String getName() {
			return name;
		}
		public String getCode() {
			return code;
		}
	}
	public static enum PIPE_STATUS{
		STARTED("1","已开启"),
		STOPED("0","已关闭");
		private String code;
		private String name;
		private PIPE_STATUS(String code,String name){
			this.name = name;
			this.code = code;
		}
		public String getName() {
			return name;
		}
		public String getCode() {
			return code;
		}
	}
	@SiNotDbColumn
	private String nodeName;//所属节点名称
	
	public String getIsLocal() {
		return isLocal;
	}

	public void setIsLocal(String isLocal) {
		this.isLocal = isLocal;
	}

	public String getNodeName() {
		return nodeName;
	}

	public void setNodeName(String nodeName) {
		this.nodeName = nodeName;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getNodeId() {
		return nodeId;
	}

	public void setNodeId(String nodeId) {
		this.nodeId = nodeId;
	}
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Date getMtime() {
		return mtime;
	}

	public void setMtime(Date mtime) {
		this.mtime = mtime;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getParamStr() {
		return paramStr;
	}

	public void setParamStr(String paramStr) {
		this.paramStr = paramStr;
	}

	public String getIsEmbed() {
		return isEmbed;
	}

	public void setIsEmbed(String isEmbed) {
		this.isEmbed = isEmbed;
	}

	public String getPipeType() {
		return pipeType;
	}

	public void setPipeType(String pipeType) {
		this.pipeType = pipeType;
	}

	@Override
	public String toString() {
		return "NodePipeline [id=" + id + ", nodeId=" + nodeId + ", paramStr="
				+ paramStr + ", status=" + status + ", isEmbed=" + isEmbed
				+ ", mtime=" + mtime + ", remark=" + remark + ", pipeType="
				+ pipeType + ", nodeName=" + nodeName + ", isLocal=" + isLocal
				+ "]";
	}

	

}
